export function iDocUrlRegex(url: string) {
  const regex = /https:\/\/idoc\.mucang\.cn\/app\/(?<appId>\w+)\/develop\/design\/(?<designId>\w+)/;

  const match = url.match(regex);

  const { appId, designId } = match.groups;

  return {
    appId,
    designId,
  };
}
